public class Main {
    public static void main(String[] args) {
        // 实例化猫、狗和人对象
        Cat cat = new Cat();
        Dog dog = new Dog();
        Person person = new Person();

        // 演示喂养动物
        System.out.println("喂养动物演示");
        person.feed(cat);
        person.feed(dog);

        // 演示追赶动物
        System.out.println("\n追赶动物演示");
        person.catchAnimal(cat);
        person.catchAnimal(dog);
    }
}